/* ======使用注明=======
 //#import "SEGMarketView.h"
 //@property (nonatomic, strong)SEGMarketView *varMarketView; <#注释#>
 // 控件数据模型创建
 SEGMarketViewModel *data = [[SEGMarketViewModel alloc]init];
 // 控件内容布局计算
 SEGMarketViewLayout *layout = [[SEGMarketViewLayout alloc]initWithData:data type:SEGEnumMarketViewType_NO];
 // 内容布局填充到视图
 SEGMarketView *varMarketView = [[SEGMarketView alloc]initWithFrame:CGRectZero];
 //varMarketView.delegate = self;
 varMarketView.left = 0;
 varMarketView.top = 0;
 varMarketView.width = LYScreenWidth()();
 varMarketView.height = varMarketView.layout.totalHeight;
 [varMarketView setWithLayout:layout];
 
 */
#import <UIKit/UIKit.h>
#define kMarketViewHeight 35     // MarketView的高度

#if __has_include(<Commom/SEGText.h>)
#import <Commom/SEGText.h>
#else
#import "SEGText.h"
#endif

#import "SEGMarketViewModel.h"

@protocol SEGprotocolMarketViewDelegate <NSObject>
@optional
-(void)SEGprotocolmainTitleLabel:(SEGLabel*)sender;
-(void)SEGprotocolcontentTitleLabel:(SEGLabel*)sender;
-(void)SEGprotocolpriceLabel:(SEGLabel*)sender;

@end

@interface SEGMarketView : UIView
@property (nonatomic, strong,readonly)SEGMarketViewLayout *layout;
- (void)setWithLayout:(SEGMarketViewLayout *)layout;

@property (nonatomic, strong) SEGLabel *mainTitleLabel; // 标题文本
@property (nonatomic, strong) SEGLabel *contentTitleLabel; // 副文本标题文本
@property (nonatomic, strong) SEGLabel *priceLabel; // 价格

@property (nonatomic, strong) UIImageView *onePictureImageVIew; // 单图图片

@property (nonatomic, assign) id<SEGprotocolMarketViewDelegate> delegate;// 代理
@end
